///import js-src/lib/
///import js-src/com/
qui(function (require, exports, module) {
    WrapSys.Config = $.extend({}, {}, {
        unCompletedId:0,
        BIG_PIC_MODE: 'style="width:264px;height:204px"',
        SMALL_PIC_MODE: 'style="width:104px;height:64px"',
        Global: {
            picWH: 'style="width:104px;height:64px"',
            smallPic: true,
            isClicked: false,
            error: '',
            channelInfo: [],
            sty2Data: {},
            d_sty2Data: [], // 广告头和尾
            noneDataNum: 0,
            fp_pos: 0,
            statisticOcrTitle: ""
        },

        HELP_DATA: [
            ["点击 + F 键", "打入点帧"],
            ["点击 + D 键", "打出点帧"],
            ["点击 + S 键", "打视频封面"],
            ["点击 + A 键", "提交打点"],
            ["点击 + V 键", "打删除(广告)的开始帧"],
            ["点击 + C 键", "打删除(广告)的结束帧"],
            ["点击 + Z 键", "提交删除"],
            ["点击 + Q 键", "出点、入点精确化裁剪"],
            ["点击 + W 键", "时间片预览"],
            ["点击 + R 键", "标题OCR识别"],
            ["点击 + [ 键", "遮罩起点"],
            ["点击 + ] 键", "遮罩终点"],
            ["点击 + ctrl + [ 键", "贴片入点"],
            ["点击 + ctrl + ] 键", "贴片出点"],
            ["ALT + Q 键", "添加遮标信息"],
            ["ALT + W 键", "添加贴片素材信息"],
            ["点击 + \\ 键", "添加遮罩区域"],
            ["点击 + U 键", "素材选择框（视频）"],
            ["点击 + I 键", "素材选择框"],
            ["点击 + = 键", "贴片素材编辑框"],
            ["X 键", "拆条列表"],
            ["E 键", "智能辅助拆条"],
            ["点击 + T 键", "分片终点"],
            ["Y 键", "提交分片"],
            ["点击 + N 键", "图片收纳结束"],
            ["点击 + M 键", "图片收纳开始"],
            ["B 键", "清除收纳标记"],
            ["上、下、左、右方向键", "上、下、左、右切换"],
            ["贴片编辑 选中 + W 键", "贴片素材自动调整宽度"],
            ["贴片编辑 选中 + H 键", "贴片素材自动调整高度"]
        ],
        HELP_DATA_AUTO_TITLE:[
            ["G 键", "标题自动识别"]
        ],
        HELP2_DATA: [
            ["点击 + F 键", "打入点"],
            ["点击 + D 键", "打出点"],
            ["点击 + S 键", "打视频封面"],
            ["点击 + Q 键", "入点、出点、封面精确化裁剪"],
            ["点击 + W 键", "时间片预览"],
            ["X 键", "拆条列表"],
            ["上、下、左、右方向键", "上、下、左、右切换"]
        ],
        ZOOM_HINT: {
            BIG: '您当前浏览器处于放大状态,按<strong>ctrl+0</strong>使用体验更佳!',
            SMALL: '您当前浏览器处于缩小状态,按<strong>ctrl+0</strong>使用体验更佳!'
        },
        PGC: 0,
        UGC: 1,
        adLibHead: 0, // 片头
        adLibTail: 1, // 片尾
        adLib: 2,// 广告

        RED_LAYOUT: '<div class="layout transparent red" onClick="this.remove();">&nbsp;</div>',
//["index", "inpoint", "outpoint", "title","channel","album","cover", "status", "operate"]
        TABLE_COLMODEL_CONFIG: {
            index: {
                name: "index",
                index: 'index',
                title: false,
                width: 45,
                sortable: false,
                align: "center"
            },
            inpoint: {
                name: "sTime",
                index: 'sTime',
                title: false,
                width: 70,
                sortable: false,
                align: "center"
            },
            outpoint: {
                name: "eTime",
                index: 'eTime',
                title: false,
                width: 70,
                sortable: false,
                align: "center"
            },
            ad_inpoint: {
                name: "sTime",
                index: 'sTime',
                title: false,
                width: 70,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return   WrapSys.Util.formatter.ad_inpoint(v, o, r);
                }
            },
            ad_outpoint: {
                name: "eTime",
                index: 'eTime',
                title: false,
                width: 70,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return   WrapSys.Util.formatter.ad_outpoint(v, o, r);
                }
            },
            title: {
                name: "title",
                index: 'title',
                title: false,
                width: 180,
                sortable: false
            },
            title_news_submit: {
                name: "title",
                index: 'title',
                title: false,
                width: 205,
                sortable: false,
                formatter: function (v, o, r) {
                    return   WrapSys.Util.formatter.title_news_submit(v, o, r);
                }
            },
            title_news_del: {
                name: "title",
                index: 'title',
                title: false,
                width: 255,
                sortable: false,
                formatter: function (v, o, r) {
                    return   WrapSys.Util.formatter.title_news_del(v, o, r);
                }
            },
            news_title: {
                name: "title",
                index: 'title',
                title: false,
                width: 165,
                sortable: false,
                formatter: function (v, o, r) {
                    return   WrapSys.Util.formatter.news_title(v, o, r);
                }
            },
            channel: {
                name: "channel",
                index: 'channel',
                title: false,
                width: 60,
                sortable: false,
                align: "center"
            },
            album: {
                name: "album",
                index: 'album',
                title: false,
                width: 60,
                sortable: false,
                align: "center"
            },
            cover: {
                name: "pic",
                index: 'pic',
                title: false,
                width: 70,
                sortable: false,
                align: "center"
            },
            status: {
                title: false,
                width: 80,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return   "已生成";
                }
            },
            operate_frame: {
                index: 'operate',
                title: false,
                width: 160,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return  WrapSys.Util.formatter.operate_frame(v, o, r);
                }
            },
            operate_advert: {
                index: 'operate',
                title: false,
                width: 160,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return WrapSys.Util.formatter.operate_advert(v, o, r);
                }
            },

            operate_news_merge: {
                index: 'operate',
                title: false,
                width: 97,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return WrapSys.Util.formatter.operate_news_merge(v, o, r);
                }
            },
            operate_merge_submit: {
                index: 'operate',
                title: false,
                width: 57,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return WrapSys.Util.formatter.operate_merge_submit(v, o, r);
                }
            },
            operate_merge_del: {
                index: 'operate',
                title: false,
                width: 100,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return WrapSys.Util.formatter.operate_merge_del(v, o, r);
                }
            },

            error_hint: {
                title: false,
                width: 70,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return WrapSys.Util.formatter.error_hint(v, o, r);
                }
            },
            news_id: {
                name: "regId",
                index: 'regId',
                title: false,
                width: 40,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return WrapSys.Util.formatter.news_id(v, o, r);
                }

            },
            hidden_news_id: {
                name: "hidden_news_id",
                title: false,
                sortable: false,
                hidden: true,
                align: "center",
                formatter: function (v, o, r) {
                    return WrapSys.Util.formatter.hidden_news_id(v, o, r);
                }
            },

            inpoint2: {
                name: "sTime",
                index: 'sTime',
                title: false,
                width: 45,
                sortable: false,
                align: "center"
            },
            outpoint2: {
                name: "eTime",
                index: 'eTime',
                title: false,
                width: 45,
                sortable: false,
                align: "center"
            },
            cover2: {
                name: "pic",
                index: 'pic',
                title: false,
                width: 45,
                sortable: false,
                align: "center"
            },
            operate_mask: {
                index: 'operate',
                title: false,
                width: 100,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return WrapSys.Util.formatter.operate_mask(v, o, r);
                }
            },
            //"material_range" , "material_outpoint", "material_name","operate_material"
            material_range:{
                name: "range",
                index: 'range',
                title: false,
                width: 100,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return WrapSys.Util.formatter.material_range(v, o, r);
                }
            },
            material_outpoint:{
                name: "eTime",
                index: 'eTime',
                title: false,
                width: 70,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return WrapSys.Util.formatter.material_outpoint(v, o, r);
                }
            },
            material_name:{
                name: "materialName",
                index: 'materialName',
                title: false,
                width: 70,
                sortable: false,
                align: "center"
            },
            operate_material: {
                index: 'operate',
                title: false,
                width: 100,
                sortable: false,
                align: "center",
                formatter: function (v, o, r) {
                    return WrapSys.Util.formatter.operate_material(v, o, r);
                }
            }
        },
        TABLE_NEWS_LIST2: {
            multiselect: false,
            datatype: "local",
            height: 350,
            toolbar: [true, "top"],
            caption: "新闻智能辅助拆条列表",
            colNames: ["序号", "标题" , "入点", "出点", "封面 ", "操作", "隐藏主键"],
            colModel: ["news_id", "news_title", "inpoint2", "outpoint2", "cover2", "operate_news_merge", "hidden_news_id"],
            pager: "#news_pager",
//            multiselect: true,
            rowNum: 100,
            onPaging: function (pgButton) {
                var retValue = WrapSys.Util.pageBeanPageHandler("news_list", "news_pager", WrapSys.Config.PageBeanNews, pgButton);
                if (retValue != null) {
                    $("#news_list")[0].addJSONData(retValue)
                }
                return "stop";
            },
            beforeSelectRow: function (rowid, e) {
                var describedby = $(e.target).attr("aria-describedby");
                if (describedby != null) {
                    var cellKey = describedby.replace("news_list_", "");
                    switch (cellKey) {
                        case "checked":
                            return false;
                        case "pic":
                        case "sTime":
                        case "eTime":
                            var rowData = WrapSys.Config.PageBeanNews.findData("regId", rowid);
                            WrapSys.Util.setHighLight(rowData);
                            WrapSys.Util.fromLIstJump(parseInt($(e.target).html()));
                            return true;
                        case "myTitle":
                            break;
                    }
                }
                var rowData = WrapSys.Config.PageBeanNews.findData("regId", rowid);
                WrapSys.Util.setHighLight(rowData);
                WrapSys.Util.fromLIstJump(rowData.sTime);
                if (e.target.tagName == "A") {
                    $("#news_list").jqGrid('setSelection', rowid);
                }
                return true;
            },
            localReader: {
                id: "regId",
                root: "rows",
                page: "page",
                total: "total",
                records: "records"
            }
        },
        TABLE_CORNER_LIST: {
            multiselect: false,
            datatype: "local",
            height: 300,
            width: 450,
            rowNum: 10,
            caption: "贴片特效素材信息录入",
            colNames: ["序号" , "入点","持续分片" , "出点","素材名称", "操作" ],
            colModel: ["index", "inpoint","material_range" , "material_outpoint", "material_name","operate_material"],
            beforeSelectRow: function (rowid, e) {
                var rowData = WrapSys.Config.PageBeanCorner.findData("index", rowid);
                WrapSys.CornerManager.setHighLight(rowData);
                if(rowData.sTime > 0){
                    WrapSys.Util.fromLIstJump(rowData.sTime);
                }
                return true;
            },
            pager: "#material_pager",
            toolbar: [true, "top"],
            onPaging: function (pgButton) {
                var retValue = WrapSys.Util.pageBeanPageHandler("material_list", "material_pager", WrapSys.Config.PageBeanCorner, pgButton);
                if (retValue != null) {
                    $("#material_list")[0].addJSONData(retValue)
                }
                return "stop";
            },
            localReader: {
                id: "index",
                root: "rows",
                page: "page",
                total: "total",
                records: "records"
            }
        },
        TABLE_ADVERT_LIST: {
            multiselect: false,
            datatype: "local",
            height: 300,
            caption: "广告列表",
            colNames: ["序号" , "入点", "出点", "标题 ", "状态", "操作"  ],
            colModel: ["index", "ad_inpoint", "ad_outpoint", "title", "status", "operate_advert"],
            rowNum: 10,
            pager: "#advert_pager",
            onPaging: function (pgButton) {
                var retValue = WrapSys.Util.pageBeanPageHandler("advert_list", "advert_pager", WrapSys.Config.PageBeanAdvert, pgButton);
                if (retValue != null) {
                    $("#advert_list")[0].addJSONData(retValue)
                }
                return "stop";
            }
        },
        TABLE_FRAME_LIST: {
            multiselect: false,
            datatype: "local",
            height: 300,
            rowNum: 10,
            caption: "拆条列表",
            colNames: ["序号" , "入点", "出点", "标题 ", "频道", "专辑", "封面", "状态", "操作" ],
            colModel: ["index", "inpoint", "outpoint", "title", "channel", "album", "cover", "status", "operate_frame"],
            pager: "#frame_pager",
            onPaging: function (pgButton) {
                var retValue = WrapSys.Util.pageBeanPageHandler("frame_list", "frame_pager", WrapSys.Config.PageBeanFrame, pgButton);
                if (retValue != null) {
                    $("#frame_list")[0].addJSONData(retValue)
                }
                return "stop";
            }
        },
        TABLE_MERGE_SUBMIT_LIST: {
            multiselect: false,
            datatype: "local",
            height: 300,
            rowNum: 10,
            caption: "已提交列表",
            colNames: ["序号" , "标题 ", "入点", "出点", "封面", "频道", "专辑", "状态", "操作" ],
            colModel: ["index", "title_news_submit", "inpoint", "outpoint", "cover", "channel", "album", "status", "operate_merge_submit"],
            pager: "#auto_submit_pager",
            onPaging: function (pgButton) {
                var retValue = WrapSys.Util.pageBeanPageHandler("auto_submit_list", "auto_submit_pager", WrapSys.Config.PageBeanNewsSubmit, pgButton);
                if (retValue != null) {
                    $("#auto_submit_list")[0].addJSONData(retValue)
                }
                return "stop";
            }
        },
        TABLE_MERGE_DEL_LIST: {
            multiselect: false,
            datatype: "local",
            height: 300,
            rowNum: 10,
            caption: "已删除列表",
            colNames: ["序号" , "标题 ", "入点", "出点", "封面", "操作" ],
            colModel: ["index", "title_news_del", "inpoint", "outpoint", "cover", "operate_merge_del"],
            pager: "#auto_del_pager",
            onPaging: function (pgButton) {
                var retValue = WrapSys.Util.pageBeanPageHandler("auto_del_list", "auto_del_pager", WrapSys.Config.PageBeanNewsDel, pgButton);
                if (retValue != null) {
                    $("#auto_del_list")[0].addJSONData(retValue)
                }
                return "stop";
            }
        },

        TABLE_MASK_LIST: {
            multiselect: false,
            datatype: "local",
            height: 300,
            width: 450,
            rowNum: 10,
            caption: "遮标信息录入",
            colNames: ["序号" , "入点", "出点", "操作" ],
            colModel: ["index", "inpoint", "material_outpoint", "operate_mask"],
            pager: "#mask_pager",
            toolbar: [true, "top"],
            onPaging: function (pgButton) {
                var retValue = WrapSys.Util.pageBeanPageHandler("mask_list", "mask_pager", WrapSys.Config.PageBeanMaskEntity, pgButton);
                if (retValue != null) {
                    $("#mask_list")[0].addJSONData(retValue)
                }
                return "stop";
            },
            beforeSelectRow: function (rowid, e) {
                var selIndex = parseInt(rowid)
                var describedby = $(e.target).attr("aria-describedby");
                if (describedby != null) {
                    var cellKey = describedby.replace("mask_list_", "");
                    switch (cellKey) {
                        case "sTime":
                        case "eTime":
                            var rowData = WrapSys.Config.PageBeanMaskEntity.findData("index", selIndex);
                            var gotoAim = parseInt($(e.target).html());
                            WrapSys.Util.setMaskHighLight(null);
                            if (gotoAim >= 0) {
                                WrapSys.Util.setMaskHighLight(rowData);
                                WrapSys.Util.fromLIstJump(gotoAim);
                            }
                            return true;
                    }
                }
                var rowData = WrapSys.Config.PageBeanMaskEntity.findData("index", selIndex);
                if (rowData.sTime >= 0) {
                    WrapSys.Util.setMaskHighLight(rowData);
                    WrapSys.Util.fromLIstJump(rowData.sTime);
                }
                return true;
            },
            localReader: {
                id: "index",
                root: "rows",
                page: "page",
                total: "total",
                records: "records"
            }
        },
        INFO_COMPLETE_WAIT_DO: "拆条完成，还有N条未审核",
        INFO_UN_COMPLETE: "正在拆条，还有N条未审核",
        INFO_COMPLETE: "等待开播",
        PageBeanFrame: null,
        PageBeanAdvert: null,
        PageBeanNewsSubmit: null,
        PageBeanNewsDel: null,
        PageBeanMaskEntity: null,
        PageBeanNews: null,
        PageBeanTemp: null,
        PageBeanCorner:null,
        //PageBeanMaterialEntity
        CropInstance: null,
        INIT_SUCCESS: false,
        EDIT_MODE_TYPE: 1,// 1:拆条参数,2:新闻发布
        LAST_SUBMIT_TIME: "",
        DOT_SUBMIT_TIME: "",
        FIRST_FRAGMENT_START:null,
        SORT_RULE: {
            asc_news_regId: function (a, b) {
                return a.regId > b.regId ? 1 : -1
            },
            asc_news_sTime: function (a, b) {
                return a.sTime > b.sTime ? 1 : -1
            },
            desc_news_index: function (a, b) {
                return a.index > b.index ? -1 : 1
            },
            asc_frameId_entityId: function (a, b) {
                if(a.insertFrameId == b.insertFrameId){
                    return a.id > b.id ? 1:-1;
                }
                return a.insertFrameId > b.insertFrameId ? 1 : -1;
            }
        },
        // 资讯25、财经24、军事28、娱乐7
        FORCE_CHECK_IMAGE: {
            tag7: "娱乐",
            tag25: "资讯",
            tag24: "财经",
            tag28: "军事"
        },
        OCR_RESULT_CALL: false,
        OCR_TITLE_FLAG: 0,
        OCR_TITLE_ORIGIN: null,

        VOD_LOG_TYPE: {
            addElement: 101,
            delElement: 102,
            modifyElement: 103,
            includeElement: 104,
            stopElement: 105,
            sendProgramDataToLego: 106,
            submitDotData: 107,
            submitFragmentData: 108,
            submitOcrTitleData: 115,
            getImageData: 117,
            addAdvertAccurate:118,
            delAdvertAccurate:119,
            delaySendDataToLego:122
        },
        ALERT_PLATFORM_NOTIFY: {
            SEND_CHAT: 1,
            SEND_MAIL: 2,
            SEND_MSG: 4
        },
        KEY_CODE: {
            A: 65,
            B: 66,
            C: 67,
            D: 68,
            E: 69,
            F: 70,
            G: 71,
            H: 72,
            I: 73,
            ESC: 27,
            Q: 81,
            R: 82,
            S: 83,
            T: 84,
            U: 85,
            V: 86,
            W: 87,
            X: 88,
            Y: 89,
            Z: 90,
            ZERO: 48,
            LEFT: 37,
            UP: 38,
            RIGHT: 39,
            DOWN: 40,
            M: 77,
            N: 78,
            LEFT_SQUARE_BRACKET: 219,
            BACKSLASH: 220,
            RIGHT_SQUARE_BRACKET: 221,
            SPACE:32
        },
        originalImageSize: {
            width: 0,
            height: 0,
            limitHeight: 603,
            limitWidth: 1072,
            newWidth: 0,
            newHeight: 0,
            scale: 1
        },
        fragmentPid: 0,
        LAST_FRAGMENT_REMIND_TIME: 0,
        LAST_FRAGMENT_REMIND_ENABLE: false,
        HeartBeat: null,
        fgRemindObj: null,

        lastSubmitObj: {programId: -1, hasSubmit: false},
        lastLegoSubmitObj: {programId: -1, hasSubmit: false},
        AUTO_SUBMIT_TRIGGER: false,
        REMIND_MSG_INFO: {
            NORMAL: "确认删除么?",
            FRAGMENT_SUBMIT: "请确保当前分片中的广告已经提交，否则将影响视频生产!",
            ADVERT_SUBMIT: "当前的输入的广告范围在已提交的分片之中，提交后已经影响到后台生产，之后请注意在提交分片前去除广告。",
            ADVERT_DEL: "您想删除的广告范围在已提交的分片之中，删除后已经影响到后台生产，之后提交广告请注意准确性。",
            ADVERT_CROSS: "与已提交的广告点有交叉,请修改!",
            NOT_BIND_MASK: '尚未关联遮标!',
            NOT_BIND_CORNER: '尚未关联贴片!',
            GET_IMG_FAIL:"获取图片数据失败",
            MODIFY_MATERIAL_INFO:"修改素材将导致直转点节目制作时间大幅延长，是否确认？",
            DEL_MATERIAL_INFO:"删除素材将导致直转点节目制作时间大幅延长，是否确认？",

            NO_TASK_ID_INFO:"任务ID为空,不能提交!",
            TOO_LONG_TITLE_INFO:"标题过长,不能提交!",
            ERROR_STIME_INFO:"开始结束时间错误",
            NO_EXIST_END_INFO:"结束帧不存在,不能提交",
            ADVERT_CONTAINS_INPOINT_INFO:"广告范围包含片头",
            ADVERT_CONTAINS_OUTPOINT_INFO:"广告范围包含片头",
            NEED_SET_RATIO_AND_POS:"尚未设置在视频中的位置和大小比例！",
            SHIM_NEED_ACCURATE_FRAME:"插入视频需要精确化！",
            MASK_DATA_ERROR:"遮标数据出点入点都必须大于零，且入点不大于出点",
            CHOOSE_IMAGE:"请人工选择封面图！",
            NO_OUTPOINT_WRAN:"素材尚未确定出点，请确认后再提交节目。",
            NO_SET_OUTPOINT_INFO:"将持续到下一分片，是否确认？",
            INVALID_CORNER_INFO:"关联贴片设置不合法!",
            BIND_CORNER_START_FIRST: '请先设定贴片入点!'
        },
        ALERT_USER:{
           TEST_SEND:"yangzhenkun,karkarrotxu",
           PRO_SEND:"yangzhenkun,liuyankui"
        },
        MATERIAL_CONTENT_TYPE:{
            key1:"压屏条",
            key2:"压屏角标",
            key3:"插入型转场",
            key4:"贴片型转场",
            key5:"大头贴",
            key6:"原创贴"
        },
        CODE_SUC:"A00000",
        ADVERT_SUPPORT:true,
        HAS_SEND_RESET:false,
        REMOTE_ROUTE:false,
        WHITE_LIST_ONLINE: [
//            {ip: "10.13.17.29", cn: "北京卫视高清"},
//            {ip: "10.13.17.28", cn: "北京新闻高清"},
//            {ip: "10.13.17.27", cn: "北京科教"}
            {ip: "10.121.202.13", cn: "北京卫视高清"}
        ],
        WHITE_LIST_DEV: [
            {ip: "10.23.70.35",cn:"北京新闻"},
            {ip: "10.6.5.125",cn:"北京卫视高清"}
        ],
        SUBMIT_DATA_MODE:{
            original:0,  //0：纯净版,
            fragment_wrap_new:89,  // 89:新建包装版-分片,
            fragment_wrap_not_made:90,   // 90:包装覆盖未制作-分片
            fragment_wrap_made:91,    // 91：包装覆盖已制作-分片,
            wrap_new:99,  // 99:新建包装版,
            wrap_not_made:100,  // 100:包装覆盖未制作，
            wrap_made:101  // 101：包装覆盖已制作
        },
        READ_IMAGE_METHOD:"new"
    });
    WrapSys.Config.GREY_MODE = {
        inRange:false,
        containsObj: function (obj) {
            var inRange = true;
            WrapSys.Config.GREY_MODE.inRange = true;
//            obj = $.extend({}, {ip: "", cn: ""}, obj);
//            var checkArr = WrapSys.Config.WHITE_LIST_ONLINE;
//            if (auth.dev()) {
//                checkArr = WrapSys.Config.WHITE_LIST_DEV
//            }
//
//            $.each(checkArr, function (i, element) {
//                if(obj.ip == element.ip && obj.cn == element.cn ){
//                    inRange = true;
//                    WrapSys.Config.GREY_MODE.inRange = true;
//                    return false;
//                }
//            })
            return inRange;
        },
        MASK_TEST: null
    }
})